gtk4.git
5 years agoaboutdialog: Set icon-size for the logo
Matthias Clasen [Mon, 11 Jan 2021 22:49:08 +0000 (17:49 -0500)]
aboutdialog: Set icon-size for the logo

Make it explicit that we want large icons here.

5 years agoaboutdialog: Set a style class
Matthias Clasen [Mon, 11 Jan 2021 21:48:06 +0000 (16:48 -0500)]
aboutdialog: Set a style class

Add the .aboutdialog style class to toplevel
widget of about dialogs, similar to what we
do for e.g. GtkAssistant.

5 years agoabout dialog: Remove manual icon sizing
Matthias Clasen [Mon, 11 Jan 2021 19:38:18 +0000 (14:38 -0500)]
about dialog: Remove manual icon sizing

We have icon theme code to do that for us.

5 years agoMerge branch 'wip/kalev/gcc-11' into 'master'
Matthias Clasen [Mon, 11 Jan 2021 22:04:52 +0000 (22:04 +0000)]
Merge branch 'wip/kalev/gcc-11' into 'master'

Avoid diagnostics for gcc-11 false positive out of bounds accesses

See merge request GNOME/gtk!3064

5 years agoMerge branch 'wip/fl/glrenderer-fixes' into 'master'
Emmanuele Bassi [Mon, 11 Jan 2021 16:44:00 +0000 (16:44 +0000)]
Merge branch 'wip/fl/glrenderer-fixes' into 'master'

gl renderer: print fragment shader info

See merge request GNOME/gtk!3069

5 years agoAvoid diagnostics for gcc-11 false positive out of bounds accesses
Kalev Lember [Sun, 10 Jan 2021 08:35:40 +0000 (09:35 +0100)]
Avoid diagnostics for gcc-11 false positive out of bounds accesses

This is a patch by Jeff Law <law@redhat.com> done in downstream Fedora
to fix the build with gcc 11.

5 years agoMerge branch 'wip/jimmac/adjust-for-contemporary-trends' into 'master'
Jakub Steiner [Mon, 11 Jan 2021 16:09:08 +0000 (16:09 +0000)]
Merge branch 'wip/jimmac/adjust-for-contemporary-trends' into 'master'

Wip/jimmac/adjust for contemporary trends

Closes #3568 and #3560

See merge request GNOME/gtk!3060

5 years agogl renderer: print fragment shader info
Fabio Lagalla [Mon, 11 Jan 2021 16:06:03 +0000 (17:06 +0100)]
gl renderer: print fragment shader info

It was logged twice the vertex shader info, instead

5 years agoAdwaita: update image assets
Jakub Steiner [Mon, 11 Jan 2021 15:18:47 +0000 (16:18 +0100)]
Adwaita: update image assets

- reflect button styling
- ignore backdrop for non buttons

5 years agoMerge branch 'otte/for-master2' into 'master'
Matthias Clasen [Mon, 11 Jan 2021 15:07:40 +0000 (15:07 +0000)]
Merge branch 'otte/for-master2' into 'master'

Remove guarantees we do not intend to hold

See merge request GNOME/gtk!3066

5 years agoAdwaita: scales border
Jakub Steiner [Mon, 11 Jan 2021 15:00:32 +0000 (16:00 +0100)]
Adwaita: scales border

- remove -alt specialcasing for a straight forward border like
  everything else and avoid broken :dark and HC

5 years agoMerge branch 'fix-tablet-4' into 'master'
Matthias Clasen [Mon, 11 Jan 2021 14:44:27 +0000 (14:44 +0000)]
Merge branch 'fix-tablet-4' into 'master'

Wayland: ignore touch/tablet events on destroyed surfaces [GTK4]

See merge request GNOME/gtk!3065

5 years agoMerge branch 'wip/jimmac/undercorated-active' into 'master'
Jakub Steiner [Mon, 11 Jan 2021 14:37:58 +0000 (14:37 +0000)]
Merge branch 'wip/jimmac/undercorated-active' into 'master'

Adwaita: less dramatic :active for undecorated buttons

Closes #3575

See merge request GNOME/gtk!3068

5 years agoAdwaita: less dramatic :active for undecorated buttons
Jakub Steiner [Mon, 11 Jan 2021 14:00:38 +0000 (15:00 +0100)]
Adwaita: less dramatic :active for undecorated buttons

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3575

5 years agoAdwaita: fix button border logic
Jakub Steiner [Mon, 11 Jan 2021 13:08:57 +0000 (14:08 +0100)]
Adwaita: fix button border logic

- tint borders dark on non default / blue / red buttons
- just use plain $borders_color otherwise
- fixes HC/HCi
- ditch -alt buttons

5 years agoAdwaita: flatter, lighter buttons
Jakub Steiner [Fri, 8 Jan 2021 21:34:28 +0000 (22:34 +0100)]
Adwaita: flatter, lighter buttons

- lighten up for contrast, less of an oldschool gradient

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3568

5 years agoAdwaita: round progress and levelbars
Jakub Steiner [Fri, 8 Jan 2021 21:25:33 +0000 (22:25 +0100)]
Adwaita: round progress and levelbars

5 years agoAdwaita: :checked:active and checked:hover states
Jakub Steiner [Fri, 8 Jan 2021 21:12:41 +0000 (22:12 +0100)]
Adwaita: :checked:active and checked:hover states

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3560

5 years agoAdwaita: flat scales, progressbars and level bars
Jakub Steiner [Fri, 8 Jan 2021 20:56:14 +0000 (21:56 +0100)]
Adwaita: flat scales, progressbars and level bars

5 years agoAdwaita: remove edge highlights
Jakub Steiner [Fri, 8 Jan 2021 20:03:30 +0000 (21:03 +0100)]
Adwaita: remove edge highlights

  - flat is the name of the game
  - kids scream make it flat
  - simplify mixins

5 years agoMerge branch 'avoid-pointer-reset-gtk4' into 'master'
Carlos Garnacho [Mon, 11 Jan 2021 12:07:01 +0000 (12:07 +0000)]
Merge branch 'avoid-pointer-reset-gtk4' into 'master'

wayland: avoid set_cursor() when unchanged or invisible

Closes #3350

See merge request GNOME/gtk!3062

5 years agoMerge branch 'surface.compute.win32' into 'master'
Matthias Clasen [Mon, 11 Jan 2021 11:56:42 +0000 (11:56 +0000)]
Merge branch 'surface.compute.win32' into 'master'

Fix surface and geometry computation for Windows (Win32)

Closes #3480

See merge request GNOME/gtk!3067

5 years agogdk/win32: Fix window display and resizing
Chun-wei Fan [Thu, 31 Dec 2020 08:36:41 +0000 (16:36 +0800)]
gdk/win32: Fix window display and resizing

Have an implementation of ->request_layout() and ->compute_size() for the Win32
surface backend so that we can properly display and move and resize the
windows, as we request from the Win32 APIs.

Hxndling Aerosnap properly is mostly done except for snap_up(), which needs to
to be looked at later.

5 years agogdk/win32: Rename 'margins' to 'shadow'
Chun-wei Fan [Thu, 31 Dec 2020 09:27:40 +0000 (17:27 +0800)]
gdk/win32: Rename 'margins' to 'shadow'

This improves consistency for the code.

5 years agogdkwin32-surface.c: Fix return type
Chun-wei Fan [Fri, 11 Dec 2020 02:37:43 +0000 (10:37 +0800)]
gdkwin32-surface.c: Fix return type

gdk_win32_toplevel_present() should now be returning nothing, not a gboolean.

5 years agogdksurface-win32.c: Decouple mapped state from surface creation
Chun-wei Fan [Fri, 11 Dec 2020 02:29:28 +0000 (10:29 +0800)]
gdksurface-win32.c: Decouple mapped state from surface creation

In line with what is done with the Wayland backend, enable the mapped state
independently as needed from the toplevel surface presentation, and also enable
the mapped state if necessary when presenting the popup surface.

5 years agoRemove guarantees we do not intend to hold
Benjamin Otte [Sun, 10 Jan 2021 21:37:03 +0000 (21:37 +0000)]
Remove guarantees we do not intend to hold

The fact that we are using gdk-pixbuf for loading files currrently does not mean we will use it going forward.
Also, "anything gdk-pixbuf can load" does not mean anything, because what gdk-pixbuf can load is a compile-time option.

As new_from_resource() will assert() if it cannot load a resource, we must be very sure that people do not use anything but PNG and JPEG for resources and the docs were not clear on that.

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sun, 10 Jan 2021 18:00:26 +0000 (18:00 +0000)]
Update Basque translation

5 years agoUpdate Basque translation
Asier Sarasua Garmendia [Sun, 10 Jan 2021 17:59:56 +0000 (17:59 +0000)]
Update Basque translation

5 years agoUpdate Polish translation
Piotr Drąg [Sun, 10 Jan 2021 17:27:55 +0000 (18:27 +0100)]
Update Polish translation

5 years agoWayland: ignore touch/tablet events on destroyed surfaces
wisp3rwind [Wed, 11 Nov 2020 09:12:26 +0000 (10:12 +0100)]
Wayland: ignore touch/tablet events on destroyed surfaces

When destroying a wl_surface (e.g. when a window or menu is closed), the
surface may continue to exist in the compositor slightly longer than on
the client side. In that case, the surface can still receive input
events, which need to be ignored gracefully.
In particular, this prevents segfaulting on wl_surface_get_user_data()
in that situation.

Reported in
https://gitlab.gnome.org/GNOME/gtk/-/issues/3296

The same issue for pointers/keyboards was reported in
https://bugzilla.gnome.org/show_bug.cgi?id=693338

and fixed with in
bfd7137ffbcbd8caa531d7a47d799fefb6605a5a
3625f17857328ae7e7aa43340f29efa56575a7b0
a8fc099a725543649fe3aab76943c14bdcd860fc

5 years agowayland: avoid set_cursor() when unchanged or invisible
wisp3rwind [Fri, 13 Nov 2020 12:01:56 +0000 (13:01 +0100)]
wayland: avoid set_cursor() when unchanged or invisible

In pointer_surface_update_scale(), only rescale the cursor surface when
the scale has actually changed and the cursor is on at least one output.

fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3350

Right now, this issue is not completely understood, so it might also
involve some questionable handling of cursor surface by sway/wlroots.

However, irrespective of that issue, this patch avoids unnecessary calls to the
compositor, and there should be no drawback: Whenever the pointer enters
a new output, pointer_surface_update_scale() will be called again, such
that correct scaling of the cursor is still ensured.

There is a slight difference: When the cursor leaves the last output,
previously the image was reset to scale factor 1. Now, it keeps whatever
was last. That might be more sensible than the previous behaviour,
assuming that it's likely that when the cursor enter an output again, it
has the same scaling. Alternatively, if one cares about resource usage
at this level, it might make more sense to destroy the surface than
rescaling to 1.

5 years ago4.0.1
Matthias Clasen [Sat, 9 Jan 2021 05:50:53 +0000 (00:50 -0500)]
4.0.1

5 years agobuild: Add a sassc feature
Matthias Clasen [Sat, 9 Jan 2021 06:28:11 +0000 (01:28 -0500)]
build: Add a sassc feature

Add an option to disable css rebuilds. This allows
to build GTK from release tarballs (Which are including
the css) without a sassc dependency.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 9 Jan 2021 03:56:59 +0000 (03:56 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3565

See merge request GNOME/gtk!3061

5 years agodroptarget: Some docs cleanups
Matthias Clasen [Sat, 9 Jan 2021 03:20:04 +0000 (22:20 -0500)]
droptarget: Some docs cleanups

Fixes #3565, among other things.

5 years agogtkffmediafile.c: Use g_snprintf()
Chun-wei Fan [Wed, 30 Dec 2020 10:14:20 +0000 (18:14 +0800)]
gtkffmediafile.c: Use g_snprintf()

Visual Studio 2013 is just shy of being sufficiently C99-compliant to
build GTK master, as it did not support snprintf() in its CRT
implementation.

Use g_snprintf() to cover for this.

5 years agogtk/gtksecurememoryprivate.h: Include glib.h
Chun-wei Fan [Wed, 30 Dec 2020 10:13:15 +0000 (18:13 +0800)]
gtk/gtksecurememoryprivate.h: Include glib.h

Some compilers somehow do not have `inline` defined, so include glib.h
to ensure that keyword is defined.`

5 years agoa11y: Avoid __ prefixes for variable names
Matthias Clasen [Wed, 6 Jan 2021 13:12:38 +0000 (08:12 -0500)]
a11y: Avoid __ prefixes for variable names

Seems that msvc does not like that.

5 years agoMerge branch 'nacho/seatdefault' into 'master'
Matthias Clasen [Sat, 9 Jan 2021 01:04:22 +0000 (01:04 +0000)]
Merge branch 'nacho/seatdefault' into 'master'

Clean ups in seat default

See merge request GNOME/gtk!3057

5 years agoseatdefault: use g_clear_pointer to unref the tools
Ignacio Casal Quinteiro [Fri, 8 Jan 2021 12:11:56 +0000 (13:11 +0100)]
seatdefault: use g_clear_pointer to unref the tools

5 years agoseatdefault: rename dispose method
Ignacio Casal Quinteiro [Fri, 8 Jan 2021 12:10:56 +0000 (13:10 +0100)]
seatdefault: rename dispose method

5 years agoMerge branch 'wip/nacho/associated-device' into 'master'
Matthias Clasen [Thu, 7 Jan 2021 21:08:46 +0000 (21:08 +0000)]
Merge branch 'wip/nacho/associated-device' into 'master'

gdkdevice: use g_set_object to set the associated device

See merge request GNOME/gtk!3049

5 years agoMerge branch 'mcatanzaro/company-unparent-warning' into 'master'
Matthias Clasen [Thu, 7 Jan 2021 18:37:28 +0000 (18:37 +0000)]
Merge branch 'mcatanzaro/company-unparent-warning' into 'master'

Add critical if widget has a parent during dispose

See merge request GNOME/gtk!3053

5 years agoMerge branch 'mcatanzaro/unparent' into 'master'
Matthias Clasen [Thu, 7 Jan 2021 18:35:37 +0000 (18:35 +0000)]
Merge branch 'mcatanzaro/unparent' into 'master'

Remove incorrect unparenting guidance from migration guide

See merge request GNOME/gtk!3050

5 years agoMerge branch 'mcatanzaro/gtkbuilder-docs' into 'master'
Matthias Clasen [Thu, 7 Jan 2021 18:00:19 +0000 (18:00 +0000)]
Merge branch 'mcatanzaro/gtkbuilder-docs' into 'master'

Improve GtkBuilder documentation

See merge request GNOME/gtk!3055

5 years agoMerge branch 'mcatanzaro/event-controller-porting-guide' into 'master'
Matthias Clasen [Thu, 7 Jan 2021 17:55:38 +0000 (17:55 +0000)]
Merge branch 'mcatanzaro/event-controller-porting-guide' into 'master'

Expand event controller API changes section of GTK 4 porting guide

See merge request GNOME/gtk!3054

5 years agoRemove incorrect unparenting guidance from migration guide
Michael Catanzaro [Thu, 7 Jan 2021 15:42:08 +0000 (09:42 -0600)]
Remove incorrect unparenting guidance from migration guide

This rule is almost always wrong, and we're having some trouble agreeing
on replacement text. Let's remove the whole paragraph for now, to avoid
confusion.

5 years agoAdd critical if widget has a parent during dispose
Benjamin Otte [Thu, 7 Jan 2021 15:49:52 +0000 (09:49 -0600)]
Add critical if widget has a parent during dispose

This is a refcounting bug. Be very verbose about it instead of trying to
call a function that releases a reference to the widget without
references.

5 years agogtkbuilder: fix recommendations that no longer make sense in GTK 4
Michael Catanzaro [Thu, 7 Jan 2021 17:30:57 +0000 (11:30 -0600)]
gtkbuilder: fix recommendations that no longer make sense in GTK 4

In GTK 3, it was pretty much always better to use
gtk_builder_new_from_whatever() rather than
gtk_builder_add_from_whatever(). But in GTK 4, this is no longer
generally true. Let's add some context on when you want to use one or
the other.

5 years agoAdd section on GtkBuilder API changes to GTK 4 migration guide
Michael Catanzaro [Thu, 7 Jan 2021 17:18:34 +0000 (11:18 -0600)]
Add section on GtkBuilder API changes to GTK 4 migration guide

Thanks to Benjamin for helping with the language.

5 years agoMerge branch 'ebassi/ci-only' into 'master'
Emmanuele Bassi [Thu, 7 Jan 2021 17:17:44 +0000 (17:17 +0000)]
Merge branch 'ebassi/ci-only' into 'master'

ci: Specify `only` for other jobs

See merge request GNOME/gtk!3052

5 years agoExpand event controller API changes section of GTK 4 porting guide
Michael Catanzaro [Thu, 7 Jan 2021 16:53:09 +0000 (10:53 -0600)]
Expand event controller API changes section of GTK 4 porting guide

There is more to say about changes to GtkEventController.

5 years agoci: Only run macOS job on upstream branches
Emmanuele Bassi [Thu, 7 Jan 2021 16:14:04 +0000 (16:14 +0000)]
ci: Only run macOS job on upstream branches

Don't run CI on macOS for forks.

5 years agoci: Specify `only` for other jobs
Emmanuele Bassi [Thu, 7 Jan 2021 16:03:10 +0000 (16:03 +0000)]
ci: Specify `only` for other jobs

Otherwise MRs will only run macOS jobs.

5 years agogdkdevice: use g_set_object to set the associated device
Ignacio Casal Quinteiro [Thu, 7 Jan 2021 15:13:39 +0000 (16:13 +0100)]
gdkdevice: use g_set_object to set the associated device

5 years agoMerge branch 'wip/jimmac/flat-buttons' into 'master'
Matthias Clasen [Thu, 7 Jan 2021 13:42:42 +0000 (13:42 +0000)]
Merge branch 'wip/jimmac/flat-buttons' into 'master'

Adwaita: fine tune flat button styling

Closes #3481

See merge request GNOME/gtk!3046

5 years agoMerge branch 'wip/jimmac/hc-switch-border' into 'master'
Matthias Clasen [Thu, 7 Jan 2021 13:41:40 +0000 (13:41 +0000)]
Merge branch 'wip/jimmac/hc-switch-border' into 'master'

HC: switch border color

Closes #3460

See merge request GNOME/gtk!3048

5 years agoMerge branch 'wip/nacho/tool-api' into 'master'
Matthias Clasen [Thu, 7 Jan 2021 13:25:11 +0000 (13:25 +0000)]
Merge branch 'wip/nacho/tool-api' into 'master'

seat: improve api to take into account the tool type

See merge request GNOME/gtk!3047

5 years agoseat: improve api to take into account the tool type
Ignacio Casal Quinteiro [Thu, 7 Jan 2021 11:27:26 +0000 (12:27 +0100)]
seat: improve api to take into account the tool type

Otherwise if we have several tools with the same serial
and hardware id we might match the wrong tool.

5 years agoHC: switch border color
Jakub Steiner [Thu, 7 Jan 2021 11:44:53 +0000 (12:44 +0100)]
HC: switch border color

- lighten inverted HC borders while darkening the regular/light variant

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3460

5 years agoAdwaita: fine tune flat button styling
Jakub Steiner [Thu, 7 Jan 2021 11:12:55 +0000 (12:12 +0100)]
Adwaita: fine tune flat button styling

- enough contrast for hover and active, while noticably different in
  normal nad headerbar context (and both light and dark variants).

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3481

5 years agoMerge branch 'X11-surface' into 'master'
Matthias Clasen [Wed, 6 Jan 2021 22:13:02 +0000 (22:13 +0000)]
Merge branch 'X11-surface' into 'master'

x11: fix crash on idle compute size without layout

See merge request GNOME/gtk!3031

5 years agoMerge branch 'wip/exalm/headerbar' into 'master'
Matthias Clasen [Wed, 6 Jan 2021 22:10:25 +0000 (22:10 +0000)]
Merge branch 'wip/exalm/headerbar' into 'master'

headerbar: Prepend start window controls instead of appending

See merge request GNOME/gtk!3044

5 years agoUpdate Catalan translation
Jordi Mas [Wed, 6 Jan 2021 21:42:44 +0000 (22:42 +0100)]
Update Catalan translation

5 years agoheaderbar: Prepend start window controls instead of appending
Alexander Mikhaylenko [Wed, 6 Jan 2021 17:04:55 +0000 (22:04 +0500)]
headerbar: Prepend start window controls instead of appending

Make sure they are always in the correct position.

5 years agoMerge branch 'macos-ci' into 'master'
Matthias Clasen [Wed, 6 Jan 2021 14:52:11 +0000 (14:52 +0000)]
Merge branch 'macos-ci' into 'master'

Macos ci

See merge request GNOME/gtk!3032

5 years agoMerge branch 'wip/jimmac/headerbar-specialcasing' into 'master'
Matthias Clasen [Wed, 6 Jan 2021 14:40:36 +0000 (14:40 +0000)]
Merge branch 'wip/jimmac/headerbar-specialcasing' into 'master'

Adwaita: specialcase switches and scales for headerbars

Closes #3504

See merge request GNOME/gtk!3043

5 years agoci: Limit macos runs
Matthias Clasen [Wed, 6 Jan 2021 14:36:02 +0000 (09:36 -0500)]
ci: Limit macos runs

We are building the full stack here, which is pretty expensive,
so only do it for merge requests and master.

5 years agoMerge branch 'wip/jimmac/hc-dim-label' into 'master'
Matthias Clasen [Wed, 6 Jan 2021 13:04:24 +0000 (13:04 +0000)]
Merge branch 'wip/jimmac/hc-dim-label' into 'master'

HC: special case .dim-label

Closes #3507

See merge request GNOME/gtk!3042

5 years agoAdwaita: specialcase switches and scales for headerbars
Jakub Steiner [Wed, 6 Jan 2021 12:02:21 +0000 (13:02 +0100)]
Adwaita: specialcase switches and scales for headerbars

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3504

5 years agoHC: special case .dim-label
Jakub Steiner [Wed, 6 Jan 2021 11:46:35 +0000 (12:46 +0100)]
HC: special case .dim-label

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3507

5 years agoMerge branch 'dlech-master-patch-65287' into 'master'
Timm Bäder [Wed, 6 Jan 2021 08:55:57 +0000 (08:55 +0000)]
Merge branch 'dlech-master-patch-65287' into 'master'

doc: fix annotation for GtkCssLocation

See merge request GNOME/gtk!3041

5 years agodoc: fix annotation for GtkCssLocation
David Lechner [Wed, 6 Jan 2021 04:32:09 +0000 (04:32 +0000)]
doc: fix annotation for GtkCssLocation

GtkCssLocation is a type so it should be prefixed with # rather than @.

5 years agomacos: use deprecated NSOnState for older systems
Christian Hergert [Wed, 6 Jan 2021 00:20:46 +0000 (16:20 -0800)]
macos: use deprecated NSOnState for older systems

5 years agomacos: keep array of pasteboard types
Christian Hergert [Tue, 5 Jan 2021 23:24:41 +0000 (15:24 -0800)]
macos: keep array of pasteboard types

To support Sierra, we need to have access to pasteboard types as a
NSString. Constants are provided in later versions of macOS, but we
can emulate that with an array which is initialized on first access.

5 years agogtk: fix brace initialization for bloom filter
Christian Hergert [Wed, 6 Jan 2021 00:01:11 +0000 (16:01 -0800)]
gtk: fix brace initialization for bloom filter

This was breaking CI for macOS and it is a simple enough change to ensure
that just works for the internal buckets.

5 years agomacos: supply NSPasteboardType when necessary
Christian Hergert [Tue, 5 Jan 2021 21:54:07 +0000 (13:54 -0800)]
macos: supply NSPasteboardType when necessary

On older macOS systems, we might need to provide our own typedef
for the NSPasteboardType. It is just a NSString pointer anyway.

5 years agomacos: fix typedef on older macOS
Christian Hergert [Tue, 5 Jan 2021 21:53:22 +0000 (13:53 -0800)]
macos: fix typedef on older macOS

On older systems, we don't have a typedef for gravity. They are a NSString
pointer and we can provide that manually just fine.

5 years agomacos: handle point conversion on older macOS
Christian Hergert [Tue, 5 Jan 2021 21:52:11 +0000 (13:52 -0800)]
macos: handle point conversion on older macOS

On older systems, the availability of some methods seem to be incorrect
based on Apple documentation. This works around the issue by using
the rect conversion on older systems.

5 years agoMerge branch 'media-caps' into 'master'
Matthias Clasen [Tue, 5 Jan 2021 21:34:27 +0000 (21:34 +0000)]
Merge branch 'media-caps' into 'master'

media: Be more specific in our caps

See merge request GNOME/gtk!3037

5 years agoMerge branch 'simplify-toolbar' into 'master'
Matthias Clasen [Tue, 5 Jan 2021 19:35:46 +0000 (19:35 +0000)]
Merge branch 'simplify-toolbar' into 'master'

3to4: Remove GtkToolbar::toolbar_style

See merge request GNOME/gtk!3040

5 years ago3to4: Remove GtkToolbar::toolbar_style
Matthias Clasen [Tue, 5 Jan 2021 18:57:47 +0000 (13:57 -0500)]
3to4: Remove GtkToolbar::toolbar_style

The property was removed (with the rest of the widget),
so keeping it around in the ui file makes no sense.

Testcase included.

5 years agoMerge branch 'ebassi/migrating-clipboard' into 'master'
Matthias Clasen [Tue, 5 Jan 2021 18:41:27 +0000 (18:41 +0000)]
Merge branch 'ebassi/migrating-clipboard' into 'master'

Ebassi/migrating clipboard

See merge request GNOME/gtk!3039

5 years agoMerge branch 'dlech-master-patch-06007' into 'master'
Emmanuele Bassi [Tue, 5 Jan 2021 18:10:59 +0000 (18:10 +0000)]
Merge branch 'dlech-master-patch-06007' into 'master'

docs: fix parameter reference in gtk_bitset_contains()

See merge request GNOME/gtk!3035

5 years agodocs: fix parameter reference in gtk_bitset_contains()
David Lechner [Tue, 5 Jan 2021 05:36:19 +0000 (05:36 +0000)]
docs: fix parameter reference in gtk_bitset_contains()

This fixes an error in the doc comments where the first parameter was
referred to as @bitset instead of @self.

5 years agodocs: Add migration section for GtkClipboard
Emmanuele Bassi [Tue, 5 Jan 2021 16:51:14 +0000 (16:51 +0000)]
docs: Add migration section for GtkClipboard

A simple copy/paste text example, plus directing people towards the
appropriate GType to replace the old convenience API.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 5 Jan 2021 16:49:53 +0000 (16:49 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!3038

5 years agoUpdated the Romanian Translation
Daniel Șerbănescu [Tue, 5 Jan 2021 16:38:02 +0000 (17:38 +0100)]
Updated the Romanian Translation

5 years agodocs: Preformat some symbols
Emmanuele Bassi [Tue, 5 Jan 2021 16:19:21 +0000 (16:19 +0000)]
docs: Preformat some symbols

5 years agogtk-demo: Small a11y fix
Matthias Clasen [Tue, 5 Jan 2021 16:16:10 +0000 (11:16 -0500)]
gtk-demo: Small a11y fix

Label the entry in the assistant demo.

5 years agoa11y: Only spew help once
Matthias Clasen [Tue, 5 Jan 2021 16:15:33 +0000 (11:15 -0500)]
a11y: Only spew help once

Make GTK_A11Y=help only spew once, and avoid a warning
when we do.

5 years agopopup: Mention the popover arrow in the docs
Matthias Clasen [Tue, 5 Jan 2021 15:59:59 +0000 (10:59 -0500)]
popup: Mention the popover arrow in the docs

Suggested by Jonas.

5 years agoMerge branch 'no-gl-context' into 'master'
Matthias Clasen [Tue, 5 Jan 2021 15:22:09 +0000 (15:22 +0000)]
Merge branch 'no-gl-context' into 'master'

Disable GL support in gstreamer media backend on Windows

See merge request GNOME/gtk!3034

5 years agoMerge branch 'wip/baedert/for-master' into 'master'
Matthias Clasen [Tue, 5 Jan 2021 15:20:25 +0000 (15:20 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'

Wip/baedert/for master

See merge request GNOME/gtk!3029

5 years agomedia: Be more specific in our caps
Matthias Clasen [Tue, 5 Jan 2021 14:21:01 +0000 (09:21 -0500)]
media: Be more specific in our caps

We can only handle 2D textures, so tell gstreamer
about that.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 5 Jan 2021 14:26:38 +0000 (14:26 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

some docs tweaks

See merge request GNOME/gtk!3036

5 years agodocs: Cosmetics
Matthias Clasen [Sat, 2 Jan 2021 21:34:34 +0000 (16:34 -0500)]
docs: Cosmetics

5 years agodocs: Flesh out Popup layout docs
Matthias Clasen [Tue, 5 Jan 2021 13:20:36 +0000 (08:20 -0500)]
docs: Flesh out Popup layout docs

We have nice illustrations for this, lets use them.

5 years agoUpdate Ukrainian translation
Yuri Chornoivan [Tue, 5 Jan 2021 08:08:44 +0000 (08:08 +0000)]
Update Ukrainian translation